#!/usr/bin/env python
#coding=utf-8
#File: fork.py

import os

def run(program, *args):
    pid = os.fork()
    if not pid:
        os.execvp(program, (program,) + args)
    return os.wait()[0]

run("python", "hello.py")
print "goodbye"